#coding=utf-8
from selenium import webdriver
import time
browser = webdriver.Chrome()
#访问百度首页
first_url= 'http://www.baidu.com'
print("now access %s" %(first_url))
browser.get(first_url)
time.sleep(2)

#访问知乎专栏页面
second_url='https://zhuanlan.zhihu.com/'
print ("now access %s" %(second_url))
browser.get(second_url)
time.sleep(2)

#返回（后退）到百度首页
print ("back to  %s "%(first_url))
browser.back()
time.sleep(1)

#前进到知乎专栏页
print ("forward to  %s"%(second_url))
browser.forward()
time.sleep(2)

browser.quit()